import request from "@/api/index"

export default{
  /**
   * @description: 鱼塘分配设备 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  addEquipmentToFishPond(params){
    const url = "/iot/fishPondEquipmentMapper/addEquipmentToFishPond"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 设备分配鱼塘 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  addFishPondToEquipment(params){
    const url = "/iot/fishPondEquipmentMapper/addFishPondToEquipment"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 编辑数据项 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/iot/fishPondEquipmentMapper/edit"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 批量删除数据项 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delListById(params){
    const url = "/iot/fishPondEquipmentMapper/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 单个删除数据项 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/iot/fishPondEquipmentMapper/delById"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "/iot/fishPondEquipmentMapper/queryByCondition"
    return request.post(url,{
      ...params
    })
  },
  /**
   * @description: 分页查询数据项 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/iot/fishPondEquipmentMapper/queryPageByCondition"
    return request.post(url,{
      ...params
    })
   },
}